﻿package mortal.game.view.guildNew
{
    import Message.Public.*;
    import mortal.game.view.activeTime.*;

    public class ActionTimeShowUtil extends Object
    {
        public var QuestionArr:Array;
        public var QuestionStr:String = "12:10-12:15";
        public var GuildBossStr:String = "15:15";
        public var SunbatchStr:String = "19:50-20:00";
        private static var _instance:ActionTimeShowUtil;

        public function ActionTimeShowUtil()
        {
            this.QuestionArr = ["12:10:00", "12:15:00"];
            this.init();
            return;
        }// end function

        private function init() : void
        {
            return;
        }// end function

        private function initQuestion() : void
        {
            var _loc_1:* = ActiveTimeUtil.getTodaySClientActiveTimeTxt(EActiveType._EActiveTypeQuestion);
            if (_loc_1 == null || _loc_1 == "")
            {
                return;
            }
            var _loc_2:* = _loc_1.split("、");
            var _loc_3:* = _loc_2[0].split("-");
            this.QuestionArr[0] = _loc_3[0] + ":00";
            this.QuestionArr[1] = _loc_3[1] + ":00";
            return;
        }// end function

        private function initGuildBoss() : void
        {
            var _loc_1:* = ActiveTimeUtil.getTodaySClientActiveTimeTxt(EActiveType._EActiveTypeGuildBoss);
            if (_loc_1 == null || _loc_1 == "")
            {
                return;
            }
            var _loc_2:* = _loc_1.split("、");
            this.GuildBossStr = _loc_2[0];
            return;
        }// end function

        private function initSunbach() : void
        {
            var _loc_1:* = ActiveTimeUtil.getTodaySClientActiveTimeTxt(EActiveType._EActiveTypeSunBath);
            if (_loc_1 == null || _loc_1 == "")
            {
                return;
            }
            var _loc_2:* = _loc_1.split("、");
            this.SunbatchStr = _loc_2[0];
            return;
        }// end function

        public static function get instance() : ActionTimeShowUtil
        {
            if (_instance == null)
            {
                _instance = new ActionTimeShowUtil;
            }
            return _instance;
        }// end function

    }
}
